package cn.piesat.dao;

import cn.piesat.dto.PiesatUserRoleRelationDTO;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 用户角色中间表持久层
 * @author xhl
 */
public interface PiesatUserRoleRelationDAO extends JpaRepository<PiesatUserRoleRelationDTO,String> {

    void deleteAllByUserId(String userId);

    List<PiesatUserRoleRelationDTO> findAllByUserId(String userId);

}
